<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>鸭子钟</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }

        .clock{

            position: relative;
            width: 500px;
            height: 500px;
            margin: 0 auto;
            margin-top: 100px;
            border-radius: 50%;
            border: 10px solid black;
            background-image: url(./练习的截图/13/bg3.jpg);
            background-size: cover;
        }

        .clock .hour-wrapper,
        .clock .min-wrapper,
        .clock .sec-wrapper{
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            margin: auto;
        }

        .clock .hour-wrapper{
            
            width: 70%;
            height: 70%;
            animation: clock 7200s infinite;
        }

        .clock .hour{
            height: 50%;
            width: 6px;
            background-color: black;
            margin: 0 auto;
        }

        .clock .min-wrapper{
            
            width: 80%;
            height: 80%;
            animation: clock 600s steps(60) infinite;
        }

        .clock .min{
            height: 50%;
            width: 4px;
            background-color: black;
            margin: 0 auto;
        }

        .clock .sec-wrapper{
            
            width: 90%;
            height: 90%;
            animation: clock 10s steps(60) infinite;
        }

        .clock .sec{
            height: 50%;
            width: 2px;
            background-color: red;
            margin: 0 auto;
        }

        @keyframes clock{
            from{
                transform: rotateZ(0);
            }
            
            to{
                transform: rotateZ(360deg);
            }
            
        }
    </style>
</head>
<body>
    <!-- 钟表容器 -->
    <div class="clock">
        <!-- 时针容器 -->
        <div class="hour-wrapper">
            <div class="hour"></div>
        </div>
        <!-- 分针容器 -->
        <div class="min-wrapper">
            <div class="min"></div>
        </div>
        <!-- 秒针容器 -->
        <div class="sec-wrapper">
            <div class="sec"></div>
        </div>


    </div>
</body>
</html>